<!DOCTYPE html>
<html>
<head>
	<#import "../common/common.macro.ftl" as netCommon>
	<@netCommon.commonStyle />
	<!-- DataTables -->
	<link rel="stylesheet" href="${request.contextPath}/static/adminlte/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
	<title>${I18n.admin_name}</title>
</head>
<body class="hold-transition skin-blue sidebar-mini <#if cookieMap?exists && cookieMap["xxljob_adminlte_settings"]?exists && "off" == cookieMap["xxljob_adminlte_settings"].value >sidebar-collapse</#if>">
<div class="wrapper">
	<!-- header -->
	<@netCommon.commonHeader />
	<!-- left -->
	<@netCommon.commonLeft "alarmRecord" />

	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>${I18n.alarm_record}</h1>
		</section>

		<!-- Main content -->
		<section class="content">

			<div class="row">
				<div class="col-xs-2">
					<div class="input-group">
						<span class="input-group-addon">${I18n.jobinfo_field_jobgroup}</span>
						<select class="form-control" id="jobGroup"  paramVal="" >
							<#if loginUser.role == 1>
								<option value="0" >${I18n.system_all}</option>  <#-- 仅管理员支持查询全部；普通用户仅支持查询有权限的 jobGroup -->
							</#if>
							<#list JobGroupList as group>
								<option value="${group.id}" >${group.title}</option>
							</#list>
						</select>
					</div>
				</div>
				<div class="col-xs-2">
					<div class="input-group">
						<span class="input-group-addon">${I18n.jobinfo_job}</span>
						<select class="form-control" id="jobId" paramVal="" >
							<option value="0" >${I18n.system_all}</option>
						</select>
					</div>
				</div>
				<div class="col-xs-2">
					<div class="input-group">
						<span class="input-group-addon">${I18n.alarm_config_type}</span>
						<select class="form-control" id="alarmType" >
							<option value="" >${I18n.system_all}</option>
							<option value="1" >${I18n.alarm_config_type_1}</option>
							<option value="2" >${I18n.alarm_config_type_2}</option>
							<option value="3" >${I18n.alarm_config_type_3}</option>
							<option value="4" >${I18n.alarm_config_type_4}</option>
						</select>
					</div>
				</div>
				<div class="col-xs-2">
					<div class="input-group">
						<span class="input-group-addon">${I18n.alarm_status}</span>
						<select class="form-control" id="alarmStatus" >
							<option value="" >${I18n.system_all}</option>
							<option value="1" >${I18n.alarm_status_1}</option>
							<option value="2" >${I18n.alarm_status_2}</option>
							<option value="3" >${I18n.alarm_status_3}</option>
						</select>
					</div>
				</div>
				<div class="col-xs-1">
					<button class="btn btn-block btn-info" id="searchBtn">${I18n.system_search}</button>
				</div>
			</div>

			<div class="row">
				<div class="col-xs-12">
					<div class="box">
						<div class="box-body" >
							<table id="alarm_record_list" class="table table-bordered table-striped" width="100%" >
								<thead>
								<tr>
									<th name="id" >ID</th>
									<th name="jobGroupName" >${I18n.jobinfo_field_jobgroup}</th>
									<th name="jobName" >${I18n.jobinfo_job}</th>
									<th name="jobHandler" >JobHandler</th>
									<th name="alarmType" >${I18n.alarm_config_type}</th>
									<th name="alarmStatus" >${I18n.alarm_status}</th>
									<th name="errorMsg" >${I18n.alarm_error_msg}</th>
									<th>${I18n.system_opt}</th>
								</tr>
								</thead>
								<tbody></tbody>
								<tfoot></tfoot>
							</table>
						</div>
					</div>
				</div>
			</div>
		</section>
	</div>

	<!-- footer -->
	<@netCommon.commonFooter />
</div>

<@netCommon.commonScript />
<!-- DataTables -->
<script src="${request.contextPath}/static/adminlte/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="${request.contextPath}/static/adminlte/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<script src="${request.contextPath}/static/js/alarmRecord.index.1.js"></script>
</body>
</html>
